package com.yunti.springboot.vo.req;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
public class RegisterParmReq implements Serializable {

    @NotBlank(message = "请输入用户名")
    @Length(message = "名称不能超过个 {max} 字符", max = 11)
    private String userName;

    private String phone;

    private String nickName;

    @NotBlank(message = "请输入密码")
    @Length(message = "密码不能超过个 {max} 字符", max = 18)
    private String password;

    @NotBlank(message = "请输入用户名")
    @Length(message = "名称不能超过个 {max} 字符", max = 10)
    private String checkpassword;

    private String[][] role;

    @NotBlank(message = "请输入学校id")
    private Integer schoolId;
}
